This guide covers the creation of a Telegram Game using Sequence’s Unity SDK.
Create a Telegram Bot with BotFather
/start
/newbot
Obtain Required Tokens
Install Sequence's Unity SDK
UI for Mobile Layouts
Configure Sequence's React Template for WebGL
WebGLTemplates
folder from Packages/Sequence Embedded Wallet SDK/
into your project’s Assets/
directory.
Go to Project Settings
-> Player
-> WebGL
-> Resolution and Presentation
and select the SequenceReact
template.Cloudflare Configuration
wrangler.toml
file and include the following content.Build your WebGL game as a React project
Authenticate with Cloudflare Account
pnpm wrangler pages deploy
Register Webhook with Telegram
registerWebhook
endpoint on our app to register the webhook function with the URL of your deployed
application to enable access for the Telegram API.Update Allowed Origins